package com.base.system.jpa.repository;

import com.base.system.jpa.entity.JpaRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface RoleRepository extends JpaSpecificationExecutor<JpaRole>, JpaRepository<JpaRole, Long> {
    Optional<JpaRole> findFirstByNameZh(String nameZh);

    Optional<JpaRole> findFirstByRoleKey(String roleKey);
}
